package com.ybxx.base.service.impl;

import java.util.List;

import com.ybxx.base.dao.RuleValueDao;
import com.ybxx.base.model.RuleValue;
import com.ybxx.base.service.RuleValueService;
import com.ybxx.core.dao.GenericDao;
import com.ybxx.core.service.impl.BaseServiceImpl;

public class RuleValueServiceImpl extends BaseServiceImpl<RuleValue> implements
		RuleValueService {
	private RuleValueDao ruleValueDao;
	public RuleValueServiceImpl(RuleValueDao dao) {
		super(dao);
		this.ruleValueDao=dao;
		// TODO Auto-generated constructor stub
	}
	public List<RuleValue> queryRuleValues(String rcode){
		List<RuleValue> rvs=null;
		rvs=ruleValueDao.findByHql("from RuleValue r where r.rule.rcode='"+rcode+"' order by seq", null);
		return rvs;
	}

}
